package com.cc.feign;

import com.cc.entity.Produce;
import com.cc.fallback.ProduceFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "produce-server", fallback = ProduceFeignFallBack.class)
public interface ProduceFeign {
    @RequestMapping("/selectProduce")
    Produce selectProduce(@RequestParam("produceId") Integer produceId);
}
